package wqh.dao;


import wqh.domain.AlarmEvent;

import java.util.List;

public interface AlarmEventDao {

    Integer selectCount();
    List<AlarmEvent> findAllRecord();
    AlarmEvent findById(Integer id);
    List<AlarmEvent> findByIpAndChannel(String ipStr,Byte channel_number);
    List<AlarmEvent> findByTimeRange(Integer start, Integer end);
    int countByTimeRange(Integer start, Integer end);

    int insertRecord(AlarmEvent alarmEvent);

    int deleteById(Integer id);
}
